package com.kingwang.training.designpattern.state.bo;

/**
 * 电梯停靠
 */
public class StopState implements LiftState {
    @Override
    public LiftState open() {
        System.out.println("电梯开门");
        return new OpenState();
    }

    @Override
    public LiftState close() {
        System.out.println("电梯已关门");
        return this;
    }

    @Override
    public LiftState run() {
        System.out.println("电梯运行");
        return new RunState();
    }

    @Override
    public LiftState stop() {
        System.out.println("电梯已停靠");
        return this;
    }

    @Override
    public void doSomething() {
        System.out.println("STOP do something");
    }
}
